package core.communication.message;

import java.util.UUID;

public class ElectionCardMessage extends TerminalMessage {
	private static final long serialVersionUID = 5134662180017912846L;

	private String card;
	
	public ElectionCardMessage(String card, UUID registrationToken, Direction direction, String terminalLocatorURI) {
		super();
		setPriority(MessagePriority.NORMAL);
		setMessageType(MessageType.ElectionCard);
		setDirection(direction);
		if (direction == Direction.DOWN)
			setDestinationURI(terminalLocatorURI);
		this.card = card;
		this.registrationToken = registrationToken;
		this.terminalLocatorURI = terminalLocatorURI;
	}

	public String getCard() {
		return card;
	}
}
